package br.livro.android.cap3;

import android.os.Bundle;
import android.view.Menu;
import android.view.TextureView;
import android.widget.ImageView;
import android.widget.TextView;
import android.app.Activity;



public class Exemplo2 extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.layout_exemplo3);
        //Busca a imageview pelo id
        ImageView img2 = (ImageView) findViewById(R.id.imagem3);
        img2.setImageResource(R.drawable.smile);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_exemplo2, menu);
        return true;
    }


    
}
